home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Champak 120
/
Vol 120.iso
/
games
/
asteroid.swf
/
scripts
/
__Packages
/
com
/
bjc
/
resizers
/
Resizer.as
next >
Wrap
Text File
|
2010-11-09
|
18KB
|
441 lines
function §\x01\x02§()
{
return 1361 % 511 * 5;
}
var §\x01§ = -789 + "\x01\x02"();
while(true)
{
if(eval("\x01") == 906)
{
set("\x01",eval("\x01") - 663);
§§push(true);
}
else if(eval("\x01") == 773)
{
set("\x01",eval("\x01") - 313);
§§push(eval(function §\x01\x02§()
{
return 1361 % 511 * 5;
}));
}
else
{
if(eval("\x01") == 285)
{
set("\x01",eval("\x01") + 326);
if(!_global.com)
{
_global.com = new Object();
}
function §\x01\x02§()
{
return 1361 % 511 * 5;
}
if(!_global.com.bjc)
{
_global.com.bjc = new Object();
}
§§pop();
if(!_global.com.bjc.resizers)
{
_global.com.bjc.resizers = new Object();
}
§§pop();
if(!_global.com.bjc.resizers.Resizer)
{
com.bjc.resizers.Resizer extends com.bjc.core.BJCComponent;
var _loc2_ = com.bjc.resizers.Resizer = function(Void)
{
super();
}.prototype;
_loc2_.init = function(Void)
{
super.init();
this.draw();
};
_loc2_.createChildren = function(Void)
{
this.createEmptyMovieClip("__topLeft",0);
this.createEmptyMovieClip("__topMid",1);
this.createEmptyMovieClip("__topRight",2);
this.createEmptyMovieClip("__midLeft",3);
this.createEmptyMovieClip("__midMid",4);
this.createEmptyMovieClip("__midRight",5);
this.createEmptyMovieClip("__bottomLeft",6);
this.createEmptyMovieClip("__bottomMid",7);
this.createEmptyMovieClip("__bottomRight",8);
this.__topLeft.createEmptyMovieClip("mask",1);
this.__topMid.createEmptyMovieClip("mask",1);
this.__topRight.createEmptyMovieClip("mask",1);
this.__midLeft.createEmptyMovieClip("mask",1);
this.__midMid.createEmptyMovieClip("mask",1);
this.__midRight.createEmptyMovieClip("mask",1);
this.__bottomLeft.createEmptyMovieClip("mask",1);
this.__bottomMid.createEmptyMovieClip("mask",1);
this.__bottomRight.createEmptyMovieClip("mask",1);
};
_loc2_.draw = function(Void)
{
this.__topLeft.attachMovie(this.__skin,"skin",0);
this.__topMid.attachMovie(this.__skin,"skin",0);
this.__topRight.attachMovie(this.__skin,"skin",0);
this.__midLeft.attachMovie(this.__skin,"skin",0);
this.__midMid.attachMovie(this.__skin,"skin",0);
this.__midRight.attachMovie(this.__skin,"skin",0);
this.__bottomLeft.attachMovie(this.__skin,"skin",0);
this.__bottomMid.attachMovie(this.__skin,"skin",0);
this.__bottomRight.attachMovie(this.__skin,"skin",0);
this.__topLeft.skin.setMask(this.__topLeft.mask);
this.__topMid.skin.setMask(this.__topMid.mask);
this.__topRight.skin.setMask(this.__topRight.mask);
this.__midLeft.skin.setMask(this.__midLeft.mask);
this.__midMid.skin.setMask(this.__midMid.mask);
this.__midRight.skin.setMask(this.__midRight.mask);
this.__bottomLeft.skin.setMask(this.__bottomLeft.mask);
this.__bottomMid.skin.setMask(this.__bottomMid.mask);
this.__bottomRight.skin.setMask(this.__bottomRight.mask);
this.size();
};
_loc2_.size = function(Void)
{
this.__width = Math.max(this.__width,this.__leftMargin + this.__rightMargin);
this.__height = Math.max(this.__height,this.__topMargin + this.__bottomMargin);
this.__midMid.skin._xscale = 100;
this.__midMid.skin._yscale = 100;
var _loc7_ = this.__midMid.skin._width - this.__leftMargin - this.__rightMargin;
var _loc2_ = this.__width - this.__leftMargin - this.__rightMargin;
var _loc5_ = _loc2_ / _loc7_;
var _loc6_ = this.__midMid.skin._height - this.__topMargin - this.__bottomMargin;
var _loc3_ = this.__height - this.__topMargin - this.__bottomMargin;
var _loc4_ = _loc3_ / _loc6_;
this.__topMid.skin._xscale = _loc5_ * 100;
this.__topMid.skin._x = (- this.__leftMargin) * _loc5_;
this.__topMid._x = this.__leftMargin;
this.__topRight._x = this.__width - this.__rightMargin;
this.__topRight.skin._x = this.__rightMargin - this.__topRight.skin._width;
this.__midLeft.skin._yscale = _loc4_ * 100;
this.__midLeft.skin._y = (- this.__topMargin) * _loc4_;
this.__midLeft._y = this.__topMargin;
this.__midMid.skin._xscale = _loc5_ * 100;
this.__midMid.skin._x = (- this.__leftMargin) * _loc5_;
this.__midMid._x = this.__leftMargin;
this.__midMid.skin._yscale = _loc4_ * 100;
this.__midMid.skin._y = (- this.__topMargin) * _loc4_;
this.__midMid._y = this.__topMargin;
this.__midRight._x = this.__width - this.__rightMargin;
this.__midRight.skin._x = this.__rightMargin - this.__midRight.skin._width;
this.__midRight.skin._yscale = _loc4_ * 100;
this.__midRight.skin._y = (- this.__topMargin) * _loc4_;
this.__midRight._y = this.__topMargin;
this.__bottomLeft._y = this.__height - this.__bottomMargin;
this.__bottomLeft.skin._y = this.__bottomMargin - this.__bottomLeft.skin._height;
this.__bottomMid.skin._xscale = _loc5_ * 100;
this.__bottomMid.skin._x = (- this.__leftMargin) * _loc5_;
this.__bottomMid._x = this.__leftMargin;
this.__bottomMid._y = this.__height - this.__bottomMargin;
this.__bottomMid.skin._y = this.__bottomMargin - this.__bottomMid.skin._height;
this.__bottomRight._x = this.__width - this.__rightMargin;
this.__bottomRight.skin._x = this.__rightMargin - this.__bottomRight.skin._width;
this.__bottomRight._y = this.__height - this.__bottomMargin;
this.__bottomRight.skin._y = this.__bottomMargin - this.__bottomRight.skin._height;
this.__topLeft.mask.clear();
this.__topLeft.mask.beginFill(16777215);
this.__topLeft.mask.lineTo(this.__leftMargin,0);
this.__topLeft.mask.lineTo(this.__leftMargin,this.__topMargin);
this.__topLeft.mask.lineTo(0,this.__topMargin);
this.__topLeft.mask.lineTo(0,0);
this.__topLeft.mask.endFill();
this.__topMid.mask.clear();
this.__topMid.mask.beginFill(16777215);
this.__topMid.mask.lineTo(_loc2_,0);
this.__topMid.mask.lineTo(_loc2_,this.__topMargin);
this.__topMid.mask.lineTo(0,this.__topMargin);
this.__topMid.mask.lineTo(0,0);
this.__topMid.mask.endFill();
this.__topRight.mask.clear();
this.__topRight.mask.beginFill(16777215);
this.__topRight.mask.lineTo(this.__rightMargin,0);
this.__topRight.mask.lineTo(this.__rightMargin,this.__topMargin);
this.__topRight.mask.lineTo(0,this.__topMargin);
this.__topRight.mask.lineTo(0,0);
this.__topRight.mask.endFill();
this.__midLeft.mask.clear();
this.__midLeft.mask.beginFill(16777215);
this.__midLeft.mask.lineTo(this.__leftMargin,0);
this.__midLeft.mask.lineTo(this.__leftMargin,_loc3_);
this.__midLeft.mask.lineTo(0,_loc3_);
this.__midLeft.mask.lineTo(0,0);
this.__midLeft.mask.endFill();
this.__midMid.mask.clear();
this.__midMid.mask.beginFill(16777215);
this.__midMid.mask.lineTo(_loc2_,0);
this.__midMid.mask.lineTo(_loc2_,_loc3_);
this.__midMid.mask.lineTo(0,_loc3_);
this.__midMid.mask.lineTo(0,0);
this.__midMid.mask.endFill();
this.__midRight.mask.clear();
this.__midRight.mask.beginFill(16777215);
this.__midRight.mask.lineTo(this.__rightMargin,0);
this.__midRight.mask.lineTo(this.__rightMargin,_loc3_);
this.__midRight.mask.lineTo(0,_loc3_);
this.__midRight.mask.lineTo(0,0);
this.__midRight.mask.endFill();
this.__bottomLeft.mask.clear();
this.__bottomLeft.mask.beginFill(16777215);
this.__bottomLeft.mask.lineTo(this.__leftMargin,0);
this.__bottomLeft.mask.lineTo(this.__leftMargin,this.__bottomMargin);
this.__bottomLeft.mask.lineTo(0,this.__bottomMargin);
this.__bottomLeft.mask.lineTo(0,0);
this.__bottomLeft.mask.endFill();
this.__bottomMid.mask.clear();
this.__bottomMid.mask.beginFill(16777215);
this.__bottomMid.mask.lineTo(_loc2_,0);
this.__bottomMid.mask.lineTo(_loc2_,this.__bottomMargin);
this.__bottomMid.mask.lineTo(0,this.__bottomMargin);
this.__bottomMid.mask.lineTo(0,0);
this.__bottomMid.mask.endFill();
this.__bottomRight.mask.clear();
this.__bottomRight.mask.beginFill(16777215);
this.__bottomRight.mask.lineTo(this.__rightMargin,0);
this.__bottomRight.mask.lineTo(this.__rightMargin,this.__bottomMargin);
this.__bottomRight.mask.lineTo(0,this.__bottomMargin);
this.__bottomRight.mask.lineTo(0,0);
this.__bottomRight.mask.endFill();
};
com.bjc.resizers.Resizer = function(Void)
{
super();
}.create = function(target, id, depth, initObj)
{
return com.bjc.resizers.Resizer(target.attachMovie("Resizer",id,depth,initObj));
};
_loc2_.__set__bottomMargin = function(rm)
{
this.__bottomMargin = rm;
this.invalidate();
return this.__get__bottomMargin();
};
_loc2_.__get__bottomMargin = function()
{
return this.__bottomMargin;
};
_loc2_.__set__leftMargin = function(lm)
{
this.__leftMargin = lm;
this.invalidate();
return this.__get__leftMargin();
};
_loc2_.__get__leftMargin = function()
{
return this.__leftMargin;
};
_loc2_.__set__margin = function(m)
{
this.__topMargin = m;
this.__bottomMargin = m;
this.__leftMargin = m;
this.__rightMargin = m;
this.invalidate();
return this.__get__margin();
};
_loc2_.__get__margin = function()
{
if(this.__topMargin == this.__bottomMargin && this.__topMargin == this.__leftMargin && this.__topMargin == this.__rightMargin)
{
return this.__topMargin;
}
return undefined;
};
_loc2_.__set__rightMargin = function(rm)
{
this.__rightMargin = rm;
this.invalidate();
return this.__get__rightMargin();
};
_loc2_.__get__rightMargin = function()
{
return this.__rightMargin;
};
_loc2_.__set__skin = function(symbol)
{
this.__skin = symbol;
this.draw();
return this.__get__skin();
};
_loc2_.__get__skin = function()
{
return this.__skin;
};
_loc2_.__set__topMargin = function(lm)
{
this.__topMargin = lm;
this.invalidate();
return this.__get__topMargin();
};
_loc2_.__get__topMargin = function()
{
return this.__topMargin;
};
_loc2_.clipParameters = {topMargin:1,bottomMargin:1,leftMargin:1,rightMargin:1,skin:1};
_loc2_.__bottomMargin = 30;
_loc2_.__leftMargin = 30;
_loc2_.__rightMargin = 30;
_loc2_.__topMargin = 30;
_loc2_.__skin = "defaultSkin";
§§push(_loc2_.addProperty("bottomMargin",_loc2_.__get__bottomMargin,_loc2_.__set__bottomMargin));
§§push(_loc2_.addProperty("leftMargin",_loc2_.__get__leftMargin,_loc2_.__set__leftMargin));
§§push(_loc2_.addProperty("margin",_loc2_.__get__margin,_loc2_.__set__margin));
§§push(_loc2_.addProperty("rightMargin",_loc2_.__get__rightMargin,_loc2_.__set__rightMargin));
§§push(_loc2_.addProperty("skin",_loc2_.__get__skin,_loc2_.__set__skin));
§§push(_loc2_.addProperty("topMargin",_loc2_.__get__topMargin,_loc2_.__set__topMargin));
§§push(ASSetPropFlags(com.bjc.resizers.Resizer.prototype,null,1));
}
§§pop();
break;
}
if(eval("\x01") == 243)
{
set("\x01",eval("\x01") + 23);
if(function §\x01\x02§()
{
return 1361 % 511 * 5;
})
{
set("\x01",eval("\x01") + 379);
}
}
else if(eval("\x01") == 566)
{
set("\x01",eval("\x01") - 281);
}
else
{
if(eval("\x01") == 266)
{
set("\x01",eval("\x01") + 379);
§§push(§§pop() >>> function §\x01\x02§()
{
return 1361 % 511 * 5;
});
break;
}
if(eval("\x01") == 315)
{
set("\x01",eval("\x01") + 183);
if(function §\x01\x02§()
{
return 1361 % 511 * 5;
})
{
set("\x01",eval("\x01") - 217);
}
}
else if(eval("\x01") == 711)
{
set("\x01",eval("\x01") - 247);
}
else if(eval("\x01") == 481)
{
set("\x01",eval("\x01") + 85);
if(function §\x01\x02§()
{
return 1361 % 511 * 5;
})
{
set("\x01",eval("\x01") - 281);
}
}
else if(eval("\x01") == 25)
{
set("\x01",eval("\x01") + 685);
§§push(true);
}
else if(eval("\x01") == 460)
{
set("\x01",eval("\x01") + 21);
§§push(!function §\x01\x02§()
{
return 1361 % 511 * 5;
});
}
else if(eval("\x01") == 362)
{
set("\x01",eval("\x01") - 24);
}
else if(eval("\x01") == 645)
{
set("\x01",eval("\x01") - 620);
}
else if(eval("\x01") == 795)
{
set("\x01",eval("\x01") - 726);
var §§pop() = function §\x01\x02§()
{
return 1361 % 511 * 5;
};
}
else if(eval("\x01") == 996)
{
set("\x01",eval("\x01") - 971);
}
else if(eval("\x01") == 710)
{
set("\x01",eval("\x01") + 214);
if(function §\x01\x02§()
{
return 1361 % 511 * 5;
})
{
set("\x01",eval("\x01") - 270);
}
}
else if(eval("\x01") == 69)
{
set("\x01",eval("\x01") + 704);
§§push("\x0f");
}
else if(eval("\x01") == 281)
{
set("\x01",eval("\x01") + 183);
}
else
{
if(eval("\x01") == 924)
{
set("\x01",eval("\x01") - 270);
break;
}
if(eval("\x01") == 611)
{
set("\x01",eval("\x01") - 611);
break;
}
if(eval("\x01") == 654)
{
set("\x01",eval("\x01") - 316);
}
else if(eval("\x01") == 464)
{
set("\x01",eval("\x01") + 331);
§§push("\x0f");
§§push(1);
}
else
{
if(eval("\x01") == 498)
{
set("\x01",eval("\x01") - 217);
break;
}
if(eval("\x01") != 338)
{
break;
}
set("\x01",eval("\x01") - 23);
§§push(true);
}
}
}
}
}